﻿alter table tblUser add ID_Kho int
go
alter table tblUser add IsActive bit
go
ALTER TABLE [dbo].[tblUser]  WITH CHECK ADD  CONSTRAINT [FK_tblUser_tblKho] FOREIGN KEY([ID_Kho])
REFERENCES [dbo].[tblKho] ([ID_Kho])
ON UPDATE SET NULL
ON DELETE SET NULL
GO

ALTER TABLE [dbo].[tblUser] CHECK CONSTRAINT [FK_tblUser_tblKho]
GO